//
//  CMBaseExt.swift
//  covermedia
//
//  Created by travel on 2016/11/8.
//  Copyright © 2016年 covermedia. All rights reserved.
//

import UIKit


extension Int: CMExtPoint {
    public var cm:CMBase<Int> {
        return CMBase.init(v: self)
    }
}

extension Double: CMExtPoint {
    public var cm:CMBase<Double> {
        return CMBase.init(v: self)
    }
}

extension Date: CMExtPoint {
    public var cm:CMBase<Date> {
        return CMBase.init(v: self)
    }
}


extension String: CMExtPoint {
    public var cm:CMBase<String> {
        return CMBase.init(v: self)
    }
}

// MARK: - 图片本身相关扩展
extension UIImage: CMExtPoint {
    public var cm:CMBase<UIImage> {
        return CMBase.init(v: self)
    }
}

// MARK: - 图片展示相关扩展
extension UIImageView: CMExtPoint {
    public var cm:CMBase<UIImageView> {
        return CMBase.init(v: self)
    }
}
